package com.example.zhihuhelpapp.bean;

import java.io.Serializable;
import java.util.List;

public class AnswerResultBean implements Serializable {

    /**
     * id : 1397869743
     * type : answer
     * answer_type : normal
     * question : {"type":"question","id":412153731,"title":"有哪些好用不贵的智能家电，买了之后极大的提升了生活质量？","question_type":"normal","created":1596595324,"updated_time":1596595324,"url":"https://www.zhihu.com/api/v4/questions/412153731","relationship":{}}
     * author : {"id":"e624788b7fadd39ba047b2f7a2783d38","url_token":"ai-jie-97","name":"流浪的猫","avatar_url":"https://pic1.zhimg.com/v2-f799ae7ebf16f7a43c8f2c4b2b261cfd_l.jpg?source=1940ef5c","avatar_url_template":"https://pic3.zhimg.com/v2-f799ae7ebf16f7a43c8f2c4b2b261cfd.jpg?source=1940ef5c","is_org":false,"type":"people","url":"https://www.zhihu.com/api/v4/people/e624788b7fadd39ba047b2f7a2783d38","user_type":"people","headline":"生活中发现智慧","badge":[],"badge_v2":{"title":"","merged_badges":[],"detail_badges":[],"icon":"","night_icon":""},"gender":1,"is_advertiser":false,"is_privacy":false}
     * url : https://www.zhihu.com/api/v4/answers/1397869743
     * is_collapsed : false
     * created_time : 1597034762
     * updated_time : 1599046468
     * extras :
     * is_copyable : true
     * relationship : {"upvoted_followees":[]}
     * ad_answer : null
     */

    private int id;
    private String type;
    private String answer_type;
    private QuestionBean question;
    private AuthorBean author;
    private String url;
    private boolean is_collapsed;
    private int created_time;
    private int updated_time;
    private String extras;
    private boolean is_copyable;
    private RelationshipBeanX relationship;
    private Object ad_answer;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAnswer_type() {
        return answer_type;
    }

    public void setAnswer_type(String answer_type) {
        this.answer_type = answer_type;
    }

    public QuestionBean getQuestion() {
        return question;
    }

    public void setQuestion(QuestionBean question) {
        this.question = question;
    }

    public AuthorBean getAuthor() {
        return author;
    }

    public void setAuthor(AuthorBean author) {
        this.author = author;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isIs_collapsed() {
        return is_collapsed;
    }

    public void setIs_collapsed(boolean is_collapsed) {
        this.is_collapsed = is_collapsed;
    }

    public int getCreated_time() {
        return created_time;
    }

    public void setCreated_time(int created_time) {
        this.created_time = created_time;
    }

    public int getUpdated_time() {
        return updated_time;
    }

    public void setUpdated_time(int updated_time) {
        this.updated_time = updated_time;
    }

    public String getExtras() {
        return extras;
    }

    public void setExtras(String extras) {
        this.extras = extras;
    }

    public boolean isIs_copyable() {
        return is_copyable;
    }

    public void setIs_copyable(boolean is_copyable) {
        this.is_copyable = is_copyable;
    }

    public RelationshipBeanX getRelationship() {
        return relationship;
    }

    public void setRelationship(RelationshipBeanX relationship) {
        this.relationship = relationship;
    }

    public Object getAd_answer() {
        return ad_answer;
    }

    public void setAd_answer(Object ad_answer) {
        this.ad_answer = ad_answer;
    }

    public static class QuestionBean {
        /**
         * type : question
         * id : 412153731
         * title : 有哪些好用不贵的智能家电，买了之后极大的提升了生活质量？
         * question_type : normal
         * created : 1596595324
         * updated_time : 1596595324
         * url : https://www.zhihu.com/api/v4/questions/412153731
         * relationship : {}
         */

        private String type;
        private int id;
        private String title;
        private String question_type;
        private int created;
        private int updated_time;
        private String url;
        private RelationshipBean relationship;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getQuestion_type() {
            return question_type;
        }

        public void setQuestion_type(String question_type) {
            this.question_type = question_type;
        }

        public int getCreated() {
            return created;
        }

        public void setCreated(int created) {
            this.created = created;
        }

        public int getUpdated_time() {
            return updated_time;
        }

        public void setUpdated_time(int updated_time) {
            this.updated_time = updated_time;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public RelationshipBean getRelationship() {
            return relationship;
        }

        public void setRelationship(RelationshipBean relationship) {
            this.relationship = relationship;
        }

        public static class RelationshipBean {
        }
    }

    public static class RelationshipBeanX {
        private List<?> upvoted_followees;

        public List<?> getUpvoted_followees() {
            return upvoted_followees;
        }

        public void setUpvoted_followees(List<?> upvoted_followees) {
            this.upvoted_followees = upvoted_followees;
        }
    }
}
